﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeavan.Game.DAL;
using FortuneHeavenCommon.DataMap;
using FortuneHeavenCommon.ComMethod;

namespace FortuneHeavenBAL
{
    public class AndroidUserInfoBO
    {
        public AndroidUserInfoDAL _payDAL;
        public AndroidUserInfoBO()
            : base()
        {
            _payDAL = new AndroidUserInfoDAL();
        }
   
        public int GetTotalSize(string id)
        {
            try
            {
                if (!UtilMethod.CheckString(id))
                {
                    return 0;
                }
                return _payDAL.GetTotalSize(id);
            }
            catch
            {
                return 0;
            }
        }

        public List<AndroidUserInfo> GetList(int page, int size, string id)
        {
            try
            {
                if (!UtilMethod.CheckString(id))
                {
                    return new List<AndroidUserInfo>();
                }
                return _payDAL.GetList(page, size, id);
            }
            catch
            {
                return new List<AndroidUserInfo>();
            }
        }
    }
}
